/*
 * iTunes Movie Trailer Import
 * Copyright (c) 2005 Jonathan Bradshaw
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, 
 * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions 
 * of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
 * DEALINGS IN THE SOFTWARE. 
 */
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;

namespace ITMSClient
{
	/// <summary>
	/// Defines an individual movie trailer
	/// </summary>
	public struct TrailerInfo
	{
		#region Member Variables
		private Uri		      _url;
		private string	      _title;
		private string	      _studio;
		private string		  _copyright;
		private string		  _overview;
		private string		  _director;
		private string	      _actors;
		private string	      _genre;
        private string _type;
		private string	      _rating;
		private string        _posterFile;
		private string        _section;
		private string		  _release;
		private int			  _year;
		private Uri			  _posterUrl;
		private DateTime      _sortDate;
		private TrailerStreamCollection _trailerStreamCollection;
		private Dictionary<String, String> _trailers;
		#endregion
		
		#region Properties
		/// <summary>
		/// Gets or sets the URL.
		/// </summary>
		/// <value></value>
		public Uri Url
		{
			get { return _url; }
			set { _url = value; }
		}
        /// <summary>
        /// Gets or sets the TrailerTypr.
        /// </summary>
        /// <value></value>
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }
		
		/// <summary>
		/// Gets the title.
		/// </summary>
		/// <value></value>
		public string Title
		{
			get { return _title; }
			set { _title = value; }
		}

		/// <summary>
		/// Gets the studio.
		/// </summary>
		/// <value></value>
		public string Studio
		{
			get { return _studio; }
			set { _studio = value; }
		}

		/// <summary>
		/// Gets the copyright.
		/// </summary>
		/// <value></value>
		public string Copyright
		{
			get { return _copyright; }
			set { _copyright = value; }
		}

		/// <summary>
		/// Gets the overview.
		/// </summary>
		/// <value></value>
		public string Overview
		{
			get { return _overview; }
			set { _overview = value; }
		}

		/// <summary>
		/// Gets the director.
		/// </summary>
		/// <value></value>
		public string Director
		{
			get { return _director; }
			set { _director = value; }
		}

		/// <summary>
		/// Gets the actors.
		/// </summary>
		/// <value></value>
		public string Actors
		{
			get { return _actors; }
			set { _actors = value; }
		}
		/// <summary>
		/// Gets the genre.
		/// </summary>
		/// <value></value>
		public string Genre
		{
			get { return _genre; }
			set { _genre = value; }
		}
		/// <summary>
		/// Gets the rating.
		/// </summary>
		/// <value></value>
		public string Rating
		{
			get { return _rating; }
			set { _rating = value; }
		}

		/// <summary>
		/// Gets or sets the poster URL.
		/// </summary>
		/// <value></value>
		public Uri PosterUrl
		{
			get { return _posterUrl; }
			set { _posterUrl = value; }
		}

		/// <summary>
		/// Gets or sets the poster file.
		/// </summary>
		/// <value></value>
		public string PosterFile
		{
			get { return _posterFile; }
			set { _posterFile = value; }
		}

		/// <summary>
		/// Gets or sets the trailer stream.
		/// </summary>
		/// <value></value>
		public TrailerStreamCollection TrailerStreamCollection
		{
			get { return _trailerStreamCollection; }
			set { _trailerStreamCollection = value; }
		}

		/// <summary>
		/// Gets or sets the released date.
		/// </summary>
		/// <value></value>
		public string Release
		{
			get { return _release; }
			set { _release = value; }
		}

		/// <summary>
		/// Gets or sets the released date.
		/// </summary>
		/// <value></value>
		public int Year
		{
			get { return _year; }
			set { _year = value; }
		}

		/// <summary>
		/// Gets or sets the trailer section.
		/// </summary>
		/// <value></value>
		public string Section
		{
			get { return _section; }
			set { _section = value; }
		}

		/// <summary>
		/// Gets or sets the sort date
		/// </summary>
		/// <value></value>
		public DateTime SortDate
		{
			get { return _sortDate; }
			set { _sortDate = value; }
		}
		public Dictionary<String, String> trailers
		{
			get{return _trailers;}
			set{_trailers = value;}
		}
		#endregion
	}
}
